package com.cjz.demo4.go_on;

/**
 *
 * 对按钮点击demo继续改造,实质无任何变化,这个改造的原因稍后将会看到
 */

public class Test {
    public static void main(String[] args) {

        Observable observable = new Observable();

        Subscriber subscriber = new Subscriber() {
            @Override
            public void call() {
                  System.out.println("button pressed");
            }
        };

        observable.subscribe(subscriber);

    }
}
